//---------------------------------------------------------------------------

#ifndef SprTarifH
#define SprTarifH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "IBCustomDataSet.hpp"
#include <DB.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "DBCtrlsEh.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxDBLookupComboBox.hpp"
#include "cxDBLookupEdit.hpp"
#include "cxDropDownEdit.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxLookupEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <ActnList.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrSprTarif : public TForm
{
__published:	// IDE-managed Components
	TPanel *pKnopki;
	TPanel *pRedakt;
	TGroupBox *gbRedakt;
	TLabel *Label1;
	TLabel *Label2;
	TLabel *Label3;
	TLabel *Label4;
	TLabel *Label5;
	TLabel *Label6;
	TLabel *Label7;
	TLabel *Label8;
	TLabel *Label9;
	TLabel *Label10;
	TDBEdit *dbeKod;
	TDBEdit *dbeNaim;
	TDBEdit *dbeCena;
	TDBEdit *dbeDen;
	TDBEdit *dbeCena1;
	TDBLookupComboBox *cbEdIzm;
	TDBLookupComboBox *cbVidGaza;
	TDBEdit *dbeRasL;
	TDBEdit *dbeRasZ;
	TDBDateTimeEditEh *dtpDat;
	TPanel *pTable;
	TDBGrid *DBGrid1;
	TBitBtn *bbtAdd;
	TBitBtn *bbtRedakt;
	TBitBtn *bbtDelete;
	TBitBtn *bbtSave;
	TActionList *ActionList1;
	TAction *Action1;
	TIBCQuery *dsetSprTarif;
	TIBCQuery *dsetEdIzm;
	TIBCQuery *dsetVidGaza;
	TIBCDataSource *dsEdIzm;
	TIBCDataSource *dsSprTarif;
	TIBCDataSource *dsVidGaza;
	void __fastcall dbeKodKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeNaimKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbEdIzmKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeCenaKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbVidGazaKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeRasLKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeRasZKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeDenKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeCena1KeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDatKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall FormKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall bbtAddClick(TObject *Sender);
	void __fastcall bbtRedaktClick(TObject *Sender);
	void __fastcall bbtDeleteClick(TObject *Sender);
	void __fastcall bbtSaveClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
String DATA,DAT;
	__fastcall TfrSprTarif(TComponent* Owner);
	void __fastcall TfrSprTarif::Obnovi();
	void __fastcall TfrSprTarif::Save();
	void __fastcall TfrSprTarif::Delete();
	void __fastcall TfrSprTarif::Redakt();

};
//---------------------------------------------------------------------------
extern PACKAGE TfrSprTarif *frSprTarif;
//---------------------------------------------------------------------------
#endif
